x86/shadow: Tweak some initialisation in sh_page_fault()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Dec 2016 11:32:59 +0000 (11:32 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Dec 2016 10:02:50 +0000 (10:02 +0000)
commit6629754fc1793782669dfe6d3c668caf1e6b4e54
tree41ac4233b8a249a587ab987e40825386ac3c7f31
parenta29e10dd0b5f0b785e6389d71dc9847a51307246
x86/shadow: Tweak some initialisation in sh_page_fault()

sh_page_fault() is a complicated function.  It aids clarity for the reader if
constant data is declared as such.

Declare struct npfec access and fetch_type_t ft as const, which requires
initialising them during declaration.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/multi.c